package behavior.strategy;

public class StrategyTest {

	public static void main(String[] args) throws InterruptedException {
		String exp1 = "1+1";
		System.out.println(exp1 + "=" + Calculator.calc(exp1));
		String exp2 = "2-1";
		System.out.println(exp2 + "=" + Calculator.calc(exp2));
		String exp3 = "2*1";
		System.out.println(exp3 + "=" + Calculator.calc(exp3));
		String exp4 = "2/1";
		System.out.println(exp4 + "=" + Calculator.calc(exp4));
	}
}
